/**
 * @author Cris
 *
 */

import java.awt.Point;


public class Bloco extends Point{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String id_blocks;

	public Bloco(int x, int y, String id){
		this.x=x;
		this.y=y;
		this.id_blocks=id;
	}
	
	void copy(Bloco newGridPos){
		x=newGridPos.x;
		y=newGridPos.y;
		id_blocks=newGridPos.id_blocks;
	}
	
	public boolean equals(Object Obj){
		Bloco pos = (Bloco)Obj;
		return (x==pos.x && y==pos.y);
	}
}
